Part Number Hot Search : 
C74ACT2 C54VN570 MAX16841 TTC013 P6SMBJ40 BAS21AW P87C591 87833
Product Description
Full Text Search
 

To Download EM78568 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
 EM78568
8-BIT MICRO-CONTROLLER for FRS
Version 3.5
ELAN MICROELECTRONICS CORP. No. 12, Innovation 1st RD., Science-Based Industrial Park Hsin Chu City, Taiwan, R.O.C. TEL: (03) 5639977 FAX: (03)5782037(SL) 5780617 (SA2)
Version History
Specification Revision History
Version EM78568 1.0 1.1 1.2 1.3 1.4 1.5 Content Initial version Update description errors Update description Revise operating voltage for DAC and CTCSS Change package and pin configuration 1. Remove CTCSS VOX function 2. Add Microphone Amp mute function 3. Change RE PAGE1 default value from 0x00 to 0xFF 4. Change CTCSS tone generation channel 19 setting 1. Update description "program ROM" form 32kx13 16kx13 2. Update "register configuration" table Add LCD waveform option bit in the code option. The new option : select LCD waveform as Type0 or Type1. 1. Change P73 interrupt setting from INT2 to INT3 2.Update pin configuration and pin description 3. Update relative RF, IOCF register bit description 4. Change feature description for interrupt numbers 1.Add item 1,2 in the user application note (see user application note) 2.Clarify "undefined bits" descriptions. Not allowed to used undefined bits. 3. Add LCD Type0 and Type1 waveform 1.Reduce data RAM from 1k to 0.5k. Remove R7 PAGE1 bit1. 2.Relayout chip to fit 100-pin compatible with EM78P568 3.Combine A/B version distinction 1.Fix bug in the application note. 2.Add extra notice in the application Revise current consumption of DC electrical characteristic Revise test condition of electrical characteristic 1.Update operating voltage of Comparator, DAC and CTCSS block in the feature description 2.Add DC voltage characteristic for 2.5VREF. 3.Revise sleep current max value from 8uA to 5uA. 4.Add description in user application note 1.Add DC characteristic under VDD=3V for 2.5VREF 2.Update description in user application note 1.Update DC characteristic 2.Fix code option 3.Remove /POVD function 4.Update user application note Revised waveform of LCD 1/4 duty for Type 1 1.Remove waveform of LCD for Type0 2.Update DC characteristic for driver/sink current 1 Revise description in operating current for analog circuit 2.Revise dB to dBm on level for CTCSS tone to MTX 1. Update VII.10, VII.11 sections 2. Add VII.12, VII.13, VII.14 sections 3. Update Fig.4, 5 ,7, 10, 12 4. Add Fig.18, 19. 20, 21, 22, 23 5. Make some figures with color 6. Add OSC and reset timing characteristic in page 50 7. Update register bit name of IOC6 PAGE1 bit 2 ~ 6 8. Revised pin number of Fig.26
1.6 1.7 1.8
2.0
2.1
2.2 2.3 2.4 2.5
2.6 2.7
2.8 2.9 3.0 3.5
User Application Note
(Before using this chip, take a look at the following description note, it includes important messages.) 1. There are some undefined bits in the registers. The values in these bits are unpredicted. These bits are not allowed to use. We use the symbol "-" in the spec to recognize them. 2. You will see some names for the register bits definitions. Some name will be appear very frequently in the whole spec. The following describes the meaning for the register's definitions such as bit type, bit name, bit number and so on.
RA PAGE0
7 RAB7 R/W -0 Bit type Bit name Bit number Register name and its page
6 RAB6 R/W -0
read/write (default value=0)
5 BAB5 R-1
4 RAB4 R/W -1
read/write (default value=1)
3 -
2 RAB2 R
1 RAB1 R-0
0 RAB0 R/W
read/write (w/o default value)
read only (w/o default value)
(undefined) not allowed to use read only (default value=1) read only (default value=0)
3. While in the ICE programming, the user need to follow the rule as : Let "IOCE PAGE0 Bit 4 ~ Bit 7" remain these values to "0"othwise it will generate unpredicted interrupts. Let "IOCC PAGE1 Bit 0" remain its value to "0" unchanged otherwise Comparator and CTCSS function will fail. 4.The function difference between EM78568 and EM78P568. Function Item EM78568 EM78P568 Data RAM 0.5k x 8 1k x 8 I/O PC0 PC0 ~ PC7 PB0 ~ PB7 LCD driver SEG0 ~ SEG19 SEG0 ~ SEG31 Package 100-pin QFP,63-pin die 100-Pin QPF, 78-pin die DC characteristic Parameter Symbol Condition Min Typ Internal 2.5V ref.. 2.5VREF VDD=5V, 25 deg for EM78568 2.32 2.46 Voltage VDD=5V, 25 deg for EM78P568 2.14 2.26 VDD=3V, 25 deg for EM78568 2.22 2.36 VDD=3V, 25 deg for EM78P568 2.04 2.18
Max Unit 2.58 V 2.38 V 2.48 V 2.3 V
5. In the feature description CPU operating voltage 2.2 ~ 5.5V, the minimum operating voltage 2.2V is under maximum main clock = 3.5826MHz.
EM78568 8-bit Micro-controller for FRS
I. General Description
The EM78568 is an 8-bit RISC type microprocessor with low power, high speed CMOS technology. This integrated single chip has an on_chip watchdog timer (WDT), program ROM, data RAM, LCD driver, programmable real time clock/counter, internal interrupt, power down mode, built-in 8-bit D/A converter, 5-bit Comparator, DAC tone generator, CTCSS analog circuit, programming dual tone generator and tri-state I/O.
II. Feature
CPU
Operating voltage : 2.2Va 5.5V 16k x 13 program ROM 0.5k x 8 on chip data RAM Up to 36 bi-directional tri-state I/O ports 16 level stack for subroutine nesting 8-bit real time clock/counter (TCC) two 8-bit counters : COUNTER1 and COUNTER2 On-chip watchdog timer (WDT) 99.9H single instruction cycle commands Four modes (Main clock can be programmed from 447.829k to 17.913MHz generated by internal PLL) Mode CPU status Main clock 32.768kHz clock status Sleep mode Turn off Turn off Turn off Idle mode Turn off Turn off Turn on Green mode Turn on Turn off Turn on Normal mode Turn on Turn on Turn on E Input port interrupt function E 8 interrupt source , 4 external , 4 internal E Dual clocks operation (Internal PLL main clock , External 32.768KHz) E E E E E E E E E E
PROGRAMMING TONE GENERATORS
E Operating voltage : 2.2Va 5.5V E Programming Tone1 and Tone2 dual tone generators E 11-bit programming Tone1 generators E 8-bit programming Tone2 generator
COMPARATOR
E E E E Operating voltage : 2.7V ~ 5.5V 3-channel input 5-bit comparison reference level setting Internal (2.5V or VDD) or external reference level
DAC
E Operating : 2.7Va 5.5V E 8-bit R-2R D/A converter E 8-bit programmable tone output E Easy to direct access as programmable CTCSS tone output by DAC tone generator E Internal (2.5V or VDD) or external reference level
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
1
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
CTCSS block
E E E E E E Operating voltage : 2.7Va 5.5V Microphone amplifier (can be used as general OP Amp) Microphone mute function RX input OP Audio BPF (300Hz ~ 3400Hz) Sub-audio LPF (60Hz ~ 253Hz) for CTCSS tone detection
E Zero-crossing for detected CTCSS tone frequency output E CTCSS Tx modulation summing Amp
POVD
E Power-on voltage detector reset E Without external reset circuit while enabling
LCD
E E E E E Common driver pins : 4 Segment driver pins : 20 1/3 bias 1/4 duty, 1/2 duty 16 Level LCD contrast control by software
PACKAGE
E 100-pin QFP (EM78568Q) 63-pin die (EM78568H)
III. Application
FRS (Family Radio Systems) and other wireless portable products
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
2
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
IV. Pin Configuration
SEG18/P92 83 SEG16/P94 SEG10/P55 SEG11/P56 SEG12/P57 SEG13/P97 SEG14/P96 SEG15/P95 SEG17/P93 SEG19/P91 82
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
SEG8
SEG9
100
99
98
97
96
95
94
93
92
91
90
89
88
87
86
85
84
81
P90
NC NC NC NC NC NC NC NC NC SEG0 COM 3 COM 2 COM 1 COM 0 NC NC NC NC NC NC AVDD RXO RXI NC NC M ICI MICO TONE PLLC AVSS
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 32 33 31 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51
NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC NC PC0 INT0/P70 INT1/P71 INT2/P72 INT3/P73 P74 P75 P76 P77 VDD
P86
P85
CM P2/P63
VSS
P81
CM P1/P62
M TX/P66
CM P3/P64
DAO/P67
AURX/P65
100-pin QFP or 63-pin die Fig.1b Pin assignment
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
3
/RESET
XOUT
P61
P60
P87
XIN
P84
P83
P82
P80
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
V. Functional Block Diagram
CPU
DATA RAM CONTROL REGISTER
TIMING CONTROL
LCD DRIVER
LCD
TIM ER TCC COUNTER1 COUNTER2 WDT
I/O PORT
I/O
ROM
8-bIT D/A PROGRAM MING TONE GEN. CTCSS block 5-bit COM PARATOR
Fig.2a Block diagram
XIN XOUT PLLC
WDT timer ROM R2 STACK
Oscillator timing control R1(TCC)
Prescaler Interrupt control General RAM Instruction decoder R4 Instruction register R3 R5 ALU
DATA RAM
Control sleep and wakeup on I/O port
ACC
DATA & Control Bus
LCD RAM LCD driver 8-bit D/A Prog. tone gen. CTCSS block Comparator IOC5 R5 PORT5 COM0~COM3 SEG0~SEG19 P55~P57 P60~P67 P70~P77 P80~P87 P90~P97 PC0 IOC6 R6 PORT6 IOC7 R7 PORT7 IOC8 R8 PORT8 IOC9 R9 PORT9 IOCC RC PORTC
Fig.2b Block diagram
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
4
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VI. Pin Descriptions
PIN POWER VDD AVDD VSS AVSS CLOCK XIN XOUT PLLC LCD COM0 ~ COM3 SEG0 ~ SEG9 SEG10 ~ SEG12 SEG13 ~ SEG19 Programming tone generators TONE Comparator CMP1 CMP2 CMP3 8-bit D/A DAO CTCSS MICO MICI RXO RXI AURX MTX IO P55~P57 P60 ~P67 P70 ~ P77 I/O POWER POWER DESCRIPTION Digital power Analog power Digital ground Analog ground Input pin for 32.768 kHz oscillator Output pin for 32.768 kHz oscillator Phase loop lock capacitor, connect a capacitor 0.01u to 0.047u to the ground.
I O I
O Common driver pins of LCD drivers O Segment driver pins of LCD drivers O (I/O : PORT5) SEG10 to SEG19 are shared with IO PORT. O (I/O : PORT9)
O I (P62) I (P63) I (P64) O (P67)
Programming single tone or dual tone output Comparator input pins. Shared with PORT62, PORT63 and PORT64.
D/A converter output pin. Shared with PORT67 Microphone amplifier output. Put a feedback resistor to adjust the gain Microphone amplifier input Receiver amplifier output. Put a feedback resistor to adjust the gain Receiver amplifier input Receiving audio output Share with PORT65 Modulation transmission output for CTCSS tone Shared with PORT66 PORT5 can be INPUT or OUTPUT port each bit. PORT5(7:5) are shared with LCD Segment signal. PORT6 can be INPUT or OUTPUT port each bit. PORT7 can be INPUT or OUTPUT port each bit. Internal Pull high function. PORT7(0~3) has interrupt function. PORT8 can be INPUT or OUTPUT port each bit. Internal pull high. PORT8(0~3) have wake-up functions(set by RE PAGE0)
O I O I O (P65) O (P66)
I/O I/O I/O
P80 ~ P87
I/O
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
5
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
P90 ~ P97 PC0 INT0 INT1 INT2 INT3 /RESET I/O I/O (PORT70) (PORT71) (PORT72) (PORT73) I PORT9 can be INPUT or OUTPUT port each bit. PORT9(1~7) are shared with LCD Segment signal. PORTC can be INPUT or OUTPUT port each bit. Interrupt sources. Once PORT70 has a falling edge or rising edge signal (controlled by CONT register), it will generate a interruption. Interrupt sources which has the same interrupt flag. Any pin from PORT71 has a falling edge signal, it will generate a interruption. Interrupt sources which has the same interrupt flag. Any pin from PORT72 has a falling edge signal, it will generate a interruption. Interrupt sources which has the same interrupt flag. Any pin from PORT73 has a falling edge signal, it will generate a interruption. Low reset
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
6
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII. Functional Descriptions VII.1 Operational Registers
Register configuration R PAGE registers Addr R PAGE0 R PAGE1 00 Indirect addressing 01 TCC 02 PC 03 Page, Status 04 RAM bank, RSR 05 Port5 I/O data, LCD RAM address
Program ROM page
IOC PAGE registers IOC PAGE0 IOC PAGE1
Port5 I/O control, LCD bias control
Comparator control
06 07 08 09 0A
Port6 I/O data Port7 I/O data
LCD RAM data buffer
Port6 I/O control
Port6 switches Port7 pull high
CTCSS detection output, Port7 I/O control Data RAM bank
Port8 I/O data Port9 I/O data PLL, Main clock, Comparator flag, WDTE
Data RAM address Data RAM data buffer DAC input data buffer
Port8 I/O control Port9 I/O control TONE2 control
Port8 pull high Port9 switches DAC control, 2.5V ref control
0B 0C 0D 0E 0F 10 : 1F 20 : 3F
PortC I/O data LCD control
Counter1 data Counter2 data
PortC I/O control TONE1 control
Port5 switch Clock source(CN1,CN2) Prescaler(CN1,CN2)
Wake-up control, Interrupt flag 16 bytes Common registers
DAC tone selection
TONE1 extra control, Interrupt mask
CTCSS control switches
Bank0~Bank3 Common registers (32x8 for each bank)
VII.2 Operational Register Detail Description
R0 (Indirect Addressing Register)
R0 is not a physically implemented register. It is used as indirect addressing pointer. Any instruction using R0 as register actually accesses data pointed by the RAM Select Register (R4). Example: Mov A, @0x20 ;store a address at R4 for indirect addressing Mov 0x04, A Mov A, @0xAA ;write data 0xAA to R20 at bank0 through R0 Mov 0x00, A
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
7
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
R1 (TCC)
TCC data buffer. Increased by 16.384KHz or by the instruction cycle clock (controlled by CONT register). Written and read by the program as any other register.
R2 (Program Counter)
The structure is depicted in Fig. 5. Generates 16k x 13 on-chip PROGRAM ROM addresses to the relative programming instruction codes. "JMP" instruction allows the direct loading of the low 10 program counter bits. "CALL" instruction loads the low 10 bits of the PC, PC+1, and then push into the stack. "RET'' ("RETL k", "RETI") instruction loads the program counter with the contents at the top of stack. "MOV R2, A" allows the loading of an address from the A register to the PC, and the ninth and tenth bits are cleared to "0''. "ADD R2,A" allows a relative address be added to the current PC, and contents of the ninth and tenth bits are cleared to "0''. "TBL" allows a relative address added to the current PC, and contents of the ninth and tenth bits don't change. The most significant bit (A10~A13) will be loaded with the contents of bit PS0~PS3 in the status register (R5 PAGE0) upon the execution of a "JMP'', "CALL'', "ADD R2, A'', or "MOV R2, A'' instruction. If an interrupt is triggered, PROGRAM ROM will jump to address 0x08 at page0. The CPU will store ACC, R3 status and R5 PAGE automatically, and they will be restored after instruction RETI.
R5(PAGE)
CALL and INTERRUPT A9 A8 0000 0001 0010 A7~A0 RET RETL RETI STACK1 STACK2 STACK3 STACK4 STACK5 STACK6 STACK7 STACK8 STACK9 STACK10 STACK11 STACK12 STACK13 STACK14 STACK15 STACK16
PC
A13 A12 A11 A10
PAGE0 0000~03FF PAGE1 0400~07FF PAGE2 0800~0BFF
store ACC,R3,R5(PAGE) restore
1110 1111
PAGE14 3800~3BFF PAGE15 3C00~3FFF
Fig.3 Program counter organization R3 (Status, Page selection)
PAGE0 (Status flag, Page selection bits) 7 6 5 4 RPAGE2 RPAGE IOCPAGE T R/W-0 R/W-0 R/W-0 R Bit 0(C) : Carry flag Bit 1(DC) : Auxiliary carry flag 3 P R 2 Z R/W 1 DC R/W 0 C R/W
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
8
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Bit 2(Z) : Zero flag Bit 3(P) : Power down bit Set to 1 during power on or by a "WDTC" command and reset to 0 by a "SLEP" command. Bit 4(T) : Time-out bit Set to 1 by the "SLEP" and "WDTC" command, or during power up and reset to 0 by WDT timeout.
EVENT WDT wake up from sleep mode WDT time out (not sleep mode) /RESET wake up from sleep Power up Low pulse on /RESET T 0 0 1 1 x P 0 1 0 1 x x : don't care REMARK
Bit 5(IOCPAGE) : change IOC5 ~ IOCE to another page Please refer to Fig.4 control register configuration for details. 0/1 page0 / page1 Bit 6(RPAGE) : change R5 ~ RE to another page Please refer to Fig.4 control register configuration for details. 0/1 page0 / page1 Bit 7(RPAGE2) : change R5 ~ RE to R page2 (remain this bit to "0" unchanged) 0 The page for R5 ~ RE depends on Bit 6(RPAGE) 1 change R5 ~ RE to page2
R4 (RAM selection for common registers R20 ~ R3F))
(RAM selection register) 7 6 5 4 3 2 1 0 RB1 RB0 RSR5 RSR4 RSR3 RSR2 RSR1 RSR0 R/W-0 R/W-0 R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 5 (RSR0 ~ RSR5) : Indirect addressing for common registers R20 ~ R3F RSR bits are used to select up to 32 registers (R20 to R3F) in the indirect addressing mode. Bit 6 ~ Bit 7 (RB0 ~ RB1) : Bank selection bits for common registers R20 ~ R3F These selection bits are used to determine which bank is activated among the 4 banks for 32 register (R20 to R3F).. Please refer to VII.1 Operational Registers for details.
R5 (PORT5 I/O data, Program page selection, LCD address)
PAGE0 (PORT5 I/O data register, Program page register) 7 6 5 4 3 2 1 P57 P56 P55 PS3 PS2 PS1 R/W R/W R/W R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 3 (PS0 ~ PS3) : Program page selection bits PS3 PS2 PS1 PS0 Program memory page (Address) 0 0 0 0 Page 0 0 0 0 1 Page 1 0 0 1 0 Page 2 0 0 1 1 Page 3 : : : : : 1 1 1 0 Page 14 1 1 1 1 Page 15 * This specification are subject to be changed without notice. 0 PS0 R/W-0
__________________________________________________________________________________________________________________________________________________________________
9
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
User can use PAGE instruction to change page to maintain program page by user. Otherwise, user can use far jump (FJMP) or far call (FCALL) instructions to program user's code. And the program page is maintained by EMC's complier. It will change user's program by inserting instructions within program. Bit 4 : (undefined) not allowed to use Bit 5 ~ Bit 7 (P55 ~ P57) : 8-bit PORT5(5~7) I/O data register User can use IOC register to define input or output each bit. PAGE1 (LCD address) 7 6 5 4 3 2 1 0 LCDA3 LCDA2 LCDA1 LCDA0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 3 (LCDA0 ~ LCDA3) : LCD address for LCD RAM read or write The address of the LCD RAM correspond to the COMMON and SEGMENT signals as the table. COM3 ~ COM0 LCD address (LCDA3 ~ LCDA0) SEG1, SEG0 00H SEG3, SEG2 01H SEG5, SEG4 02H SEG7, SEG6 03H SEG9, SEG8 04H SEG11, SEG10 05H SEG13, SEG12 06H SEG15, SEG14 07H SEG17, SEG16 08H SEG19, SEG18 09H Bit 4 ~ Bit 7 : (undefined) not allowed to use
R6 (PORT6 I/O data, LCD data)
PAGE0 (PORT6 I/O data register) 7 6 5 4 3 2 1 0 P67 P66 P65 P64 P63 P62 P61 P60 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 8 (P60 ~ P67) : 8-bit PORT6(0~7) I/O data register User can use IOC register to define input or output each bit. PAGE1 (LCD data) 7 6 5 4 3 2 1 0 LCDD7 LCDD6 LCDD5 LCDD4 LCDD3 LCDD2 LCDD1 LCDD0 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 7 (LCDD0 ~ LCDD7 ) : LCD data buffer for LCD RAM read or write LCD data vs. COM-SEG LCD address LCDD7 ~ LCDD4 LCDD3 ~ LCDD0 (LCDA3 ~ LCDA0) COM3 ~ COM0 COM3 ~ COM0 SEG1 SEG0 00H SEG3 SEG2 01H SEG5 SEG4 02H SEG7 SEG6 03H SEG9 SEG8 04H SEG11 SEG10 05H SEG13 SEG12 06H
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
10
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
SEG15 SEG17 SEG19 SEG14 SEG16 SEG18 07H 08H 09H
R7 (PORT7 I/O data, Data RAM bank)
PAGE0 (PORT7 I/O data register) 7 6 5 4 3 2 1 0 P77 P76 P75 P74 P73 P72 P71 P70 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 7 (P70 ~ P77) : 8-bit PORT7(0~7) I/O data register User can use IOC register to define input or output each bit. PAGE1 (VOX detection output, CTCSS detection output, Data RAM bank selection bit) 7 6 5 4 3 2 1 0 DETO RAM_B0 R R/W-0 Bit 0 (RAM_B0) : Data RAM bank selection bit Each bank has address 0 ~ address 255 which is total 256 (0.25k) bytes RAM size. Data RAM bank selection : (Total RAM = 1.0K) RAM_B1 RAM_B0 RAM bank 0 0 Bank0 0 1 Bank1 1 0 Bank2 1 1 Bank3 Bit 1 ~ Bit 5 : (undefined) not allowed to use Bit 6(DETO) : CTCSS tone detection The signal passing CTCSS sub audio LPF will be extracted CTCSS tone. Then this tone will go into the ZC(Zero-crossing detector) and output to DETO bit. This bit reflects the CTCSS tone frequency pulse waveform. The user can count the timing to get the CTCSS frequency. Also see IOCE PAGE1 for CTCSS block and switch control. Bit 7 : (undefined) not allowed to use
R8 (PORT8 I/O data, Data RAM address)
PAGE0 (PORT8 I/O data register) 7 6 5 4 3 2 1 0 P87 P86 P85 P84 P83 P82 P81 P80 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 7 (P80 ~ P87) : 8-bit PORT8(0~7) I/O data register User can use IOC register to define input or output each bit. PAGE1 (Data RAM address register) 7 6 5 4 3 2 1 0 RAM_A7 RAM_A6 RAM_A5 RAM_A4 RAM_A3 RAM_A2 RAM_A1 RAM_A0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (RAM_A0 ~ RAM_A7) : data RAM address The data RAM bank's selection is from R7 PAGE1 bit0 ~ bit 1 (RAM_B0 ~ RAM_B1).
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
11
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS R9 (PORT9 I/O data, Data RAM data buffer)
PAGE0 (PORT9 I/O data register) 7 6 5 4 3 2 1 0 P97 P96 P95 P94 P93 P92 P91 P90 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 7 (P90 ~ P97) : 8-bit PORT9(0~7) I/O data register User can use IOC register to define input or output each bit. PAGE1 (Data RAM data register) 7 6 5 4 3 2 1 0 RAM_D7 RAM_D6 RAM_D5 RAM_D4 RAM_D3 RAM_D2 RAM_D1 RAM_D0 R/W R/W R/W R/W R/W R/W R/W R/W Bit 0 ~ Bit 7 (RAM_D0 ~ RAM_D7) : Data RAM's data The address for data RAM is accessed from R8 PAGE1. The data RAM bank is selected by R7 PAGE1 Bit 0 ~ Bit 1 (RAM_B0 ~ RAM_B1).
RA (PLL, Main clock selection, Comparator flag, Watchdog timer, DAC input data buffer)
PAGE0 (PLL enable bit, Main clock selection bits, Comparator control bits, Watchdog timer enable bit) 7 6 5 4 3 2 1 0 IDLE PLLEN CLK2 CLK1 CLK0 CMPFLAG CMPREF WDTEN R/W-0 R/W-0 R/W-0 R/W-1 R/W-1 R R/W-0 R/W-0 Bit 0(WDTEN) : Watch dog control bit User can use WDTC instruction to clear watch dog counter. The counter 's clock source is 32768/2 Hz. If the prescaler assigns to TCC. Watch dog will time out by (1/32768 )*2 * 256 = 15.616mS. If the prescaler assigns to WDT, the time of time out will be more times depending on the ratio of prescaler. 0/1 disable/enable Bit 1(CMPREF) : Comparator's reference voltage source selection bit 0 Comparator's reference voltage is driven from internal bias resistor string. This reference voltage level can be set by RD PAGE0 bit 0 ~ bit 5 (CMP_B0 ~ CMP_B5). 1 Comparator's reference voltage is driven from external bias. This reference voltage input is CMP3/P65 pin. Also IOC6 PAGE1 bit 2(CMP63/P63) should be set to "1". Bit 2(CMPFLAG) : Output of the comparator 0 Input voltage < reference voltage 1 input voltage > reference voltage Bit 3 ~ Bit 5 (CLK0 ~ CLK2) : MAIN clock selection bits User can choose different frequency of main clock by CLK1 and CLK2. All the clock selection is list below. PLLEN 1 1 1 1 1 1 1 1 0 CLK2 0 0 0 0 1 1 1 1 don't care CLK1 0 0 1 1 0 0 1 1 CLK0 0 1 0 1 0 1 0 1 don't care Sub clock 32.768kHz 32.768kHz 32.768kHz 32.768kHz 32.768kHz 32.768kHz 32.768kHz 32.768kHz 32.768kHz MAIN clock 447.829kHz 895.658kHz 1.791MHz 3.582MHz 7.165MHz 10.747MHz 14.331MHz 17.913MHz don't care CPU clock 447.829kHz (Normal mode) 895.658kHz (Normal mode) 1.791MHz (Normal mode) 3.582MHz (Normal mode) 7.165MHz (Normal mode) 10.747MHz (Normal mode) 14.331MHz (Normal mode) 17.913MHz (Normal mode) 32.768kHz (Green mode)
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
12
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Bit 6(PLLEN) : PLL's power control bit which is CPU mode control register 0/1 disable PLL/enable PLL If enable PLL, CPU will operate at normal mode (high frequency). Otherwise, it will run at green mode (low frequency, 32768 Hz).
447.8293kHz ~17.9132MHz
CLK2 ~ CLK0
PLL circuit
ENPLL
1 switch 0
System clock
Sub-clock 32.768kHz
Fig.4 The relation between 32.768kHz and PLL
Bit 7(IDLE) : Sleep mode or IDLE mode control after using "SLEP" instruction. 0/1 SLEEP mode/IDLE mode. This bit will decide SLEP instruction which mode to go. The status after wake-up and the wake-up sources list as the table below. Wakeup signal SLEEP mode RA(7,6)=(0,0) + SLEP No function IDLE mode RA(7,6)=(1,0) + SLEP (1) Wake-up (2) Jump to SLEP next instruction (1) Wake-up (2) Jump to SLEP next instruction (1) Wake-up (2) Jump to SLEP next instruction (1) Wake-up (2) Next instruction (1) Wake-up (2) Jump to SLEP next instruction (1) Wake-up (2) Jump to SLEP next instruction
TCC time out IOCF bit0=1 COUNTER1 time out IOCF bit1=1 COUNTER2 time out IOCF bit2=2 WDT time out PORT8(0~3) RE PAGE0 bit3 or bit4 or bit5 or bit6 = 1 PORT7(0~3) IOCF bit3 or bit4 or bit5 or bit7=1
No function No function Reset and jump to address 0 Reset and Jump to address 0 Reset and Jump to address 0
PORT70 's wakeup function is controlled by IOCF bit 3. It's falling edge or rising edge trigger (controlled by CONT register bit7). PORT7(1~3) 's wakeup functions are controlled by IOCF bit (4,5,7). They are falling edge trigger. PORT80~PORT83's wakeup function are controlled by RE PAGE0 bit 0 ~ bit 3. They are falling edge trigger.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
13
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
PAGE1 (DAC input data register) 7 6 5 4 3 2 DA7 DA6 DA5 DA4 DA3 DA2 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (DA0 to DA7) : DA converter data buffer
1 DA1 R/W-1
0 DA0 R/W-1
RC (PORTC0 I/O data, Counter1 data)
PAGE0 (PORT9 I/O data register) 7 6 5 4 3 2 1 0 PC0 R/W
Bit 0 (PC0) : PORTC0 I/O data register User can use IOC register to define input or output this bit. Bit 1 ~ Bit 7 : (undefined) not allowed to use PAGE1 (Counter1 data register) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 CN17 CN16 CN15 CN14 CN13 CN12 CN11 CN10 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (CN10 ~ CN17) : Counter1's buffer that user can read and write. Counter1 is a 8-bit up-counter with 8-bit prescaler that user can use RC PAGE1 to preset and read the counter.(write preset) After a interruption , it will reload the preset value. Example for writing : MOV 0x0C, A ; write the data at accumulator to counter1 (preset) Example for reading : MOV A, 0x0C ; read the data at counter1 to accumulator
RD (LCD control, Counter2 data)
PAGE0 (LCD driver control bits) 7 6 5 4 3 2 1 0 DETOED LCD_C1 LCD_C0 LCD_M R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 (LCD_M) : LCD operation method including duty and frame frequency Bit 1 ~ Bit 2 (LCD_C0 ~ LCD_C1) : LCD display control LCD_C1 LCD_C0 LCD_M LCD Display Control Duty Bias change duty 0 1/4 1/3 1 Disable(turn off LCD) 1/2 1/3 0 1 : Blanking : : 1 1 : LCD display enable : : Ps. To change the display duty must set the "LCD_C1 ,LCD_C0" to "00". The controller can drive LCD directly. The LCD block is made up of common driver, segment driver, display LCD RAM, common output pins, segment output pins and LCD operating power supply. The basic structure contains a timing control. This timing control uses the basic frequency 32.768KHz to generate the proper timing for different duty and display access. RD PAGE0 Bit 0 ~ Bit 2 are LCD control bits for LCD driver. These LCD control bits determine the duty, the number of common and the frame frequency. The LCD display (disable, enable, blanking) is controlled by Bit 1 and Bit 2. The driving duty is decided by Bit 0. The display data is stored in LCD RAM which address and data access controlled by registers R5 PAGE1 and R6 PAGE1.
__________________________________________________________________________________________________________________________________________________________________
0
0
* This specification are subject to be changed without notice.
14
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
User can regulate the contrast of LCD display by IOC5 PAGE0 Bit 0 ~ Bit 3 (BIAS0 ~ BIAS3). Up to 16 levels contrast is convenient for better display. Bit 3 ~ Bit 6 : (undefined) not allowed to use. Bit 7 (DETOED) : the interrupt triggering edge control for CTCSS tone detection output 0/1 falling edge/falling and rising PAGE1 (Counter2 data register) Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 CN27 CN26 CN25 CN24 CN23 CN22 CN21 CN20 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (CN20 ~ CN27) : Counter2's buffer that user can read and write. Counter2 is a 8-bit up-counter with 8-bit prescaler that user can use RD PAGE1 to preset and read the counter.(write preset) After a interruption, it will reload the preset value. Example for writing : MOV 0x0D, A ; write the data at accumulator to counter2 (preset) Example for reading : MOV A, 0x0D ; read the data at counter2 to accumulator
RE (Wake-up control, DAC tone output frequency selection)
PAGE0 (Interrupt flag, Wake-up control bits) 7 6 5 4 3 2 1 0 /WUP83 /WUP82 /WUP81 /WUP80 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 (/WUP80) : PORT80 wake-up control, 0/1 disable/enable P80 pin wake-up function Bit 1 (/WUP81) : PORT81 wake-up control, 0/1 disable/enable P81 pin wake-up function Bit 2 (/WUP82) : PORT82 wake-up control, 0/1 disable/enable P82 pin wake-up function Bit 3 (/WUP83) : PORT83 wake-up control, 0/1 disable/enable P83 pin wake-up function Bit 4 ~ Bit 7 : (undefined) not allowed to use PAGE1 (Programmable D/A tone selection register) 7 6 5 4 3 2 1 0 DAT7 DAT6 DAT5 DAT4 DAT3 DAT2 DAT1 DAT0 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (DAT0 ~ DAT7) : D/A tone output frequency selection The programmable D/A tone output frequency = 447829Hz / Mi / 32, where Mi = DAT7 ~ DAT0 = 1 ~ 255 When Mi = DAT7 ~ DAT0 = 0 or DAT/DAD(IOCA PAGE1 Bit 7) = 0, the D/A tone output generation circuit will be disabled. It is specially used for CTCSS tone generation. Also refer to DAC for details
fm = 447.829kHz
DAC Tone Gen.
to DAC input
MUX
DA7~DA0
DAT7~DAT0 DAT/DAD
Fig.5 Programmable DAC tone generation
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
15
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
For example : CTCSS tone generation : Channel DAT7~DAT0 D/A tone generation 00000000 Disable 1 11010001 Enable 2 11001010 3 11000011 4 10111100 5 10110110 6 10110000 7 10101010 8 10100100 9 10011110 10 10011001 11 10010100 12 10010000 13 10001100 14 10000111 15 10000011 16 01111110 01111010 17 01110110 18 01110010 19 01101110 20 01101010 21 01100111 22 01100011 23 01100000 24 01011100 25 01011001 26 01011000 27 01010110 28 01010011 29 01010001 30 01001110 31 32 01001100 01001011 33 01001010 34 01001001 35 01000111 36 01000110 37 01000101 38 01000100 39 01000010 40 01000000 41 00111110 42 00111101 43 00111100 44 00111010 45 00111000 46 00110111 47
CTCSS tone 67.0 69.3 71.9 74.4 77.0 79.7 82.5 85.4 88.5 91.5 94.8 97.4 100.0 103.5 107.2 110.9 114.8 118.8 123.0 127.3 131.8 136.5 141.3 146.2 151.4 156.7 159.8 162.2 167.9 173.8 179.9 183.5 186.2 189.9 192.8 196.6 199.5 203.5 206.5 210.7 218.1 225.7 229.1 233.6 241.8 250.3 254.1
Mi 209 202 195 188 182 176 170 164 158 153 148 144 140 135 131 126 122 118 114 110 106 103 99 96 92 89 88 86 83 81 78 76 75 74 73 71 70 69 68 66 64 62 61 60 58 56 55
Act. Freq. 66.960 69.280 71.767 74.440 76.894 79.515 82.322 85.333 88.574 91.468 94.558 97.185 99.962 103.664 106.829 111.069 114.710 118.599 122.760 127.224 132.025 135.870 141.360 145.778 152.116 157.243 159.030 162.729 168.610 172.773 179.419 184.140 186.595 189.117 191.708 197.108 199.924 202.821 205.804 212.040 218.667 225.720 229.421 233.244 241.287 249.905 254.448
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
16
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
RF (Interrupt status)
(Interrupt status register) 7 6 5 4 3 2 1 0 INT3 DETO INT2 INT1 INT0 CNT2 CNT1 TCIF R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 "1" means interrupt request, "0" means non-interrupt Bit 0(TCIF) : TCC timer overflow interrupt flag Set when TCC timer overflows. Bit 1(CNT1) : counter1 timer overflow interrupt flag Set when counter1 timer overflows. Bit 2(CNT2) : counter2 timer overflow interrupt flag Set when counter2 timer overflows. Bit 3(INT0) : external INT0 pin interrupt flag If PORT70 has a falling edge/rising edge (controlled by CONT register) trigger signal, CPU will set this bit. Bit 4(INT1) : external INT1 pin interrupt flag If PORT71 has a falling edge trigger signal, CPU will set this bit. Bit 5(INT2) : external INT2 pin interrupt flag If PORT72 has a falling edge trigger signal, CPU will set this bit. Bit 6(DETO) : CTCSS tone detection interrupt flag If CTCSS detection output signal(R7 PAGE1 bit 6) has an edge signal (falling edge, falling and rising edge), CPU will set this bit. Bit 7(INT3) : external INT3 pin interrupt flag If PORT73 has a falling edge trigger signal, CPU will set this bit. IOCF is the interrupt mask register. User can read and clear. Trigger edge as the table Signal TCC COUNTER1 COUNTER2 INT0 INT1 INT2 DETO Trigger Time out Time out Time out Falling Rising edge Falling edge Falling edge Falling edge Falling and rising edge
R10~R3F (General Purpose Register)
R10~R3F (Banks 0 ~ 3) : all are general purpose registers.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
17
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.3 Special Purpose Registers
A (Accumulator)
Internal data transfer, or instruction operand holding It's not an addressable register.
CONT (Control Register)
7 6 5 4 3 2 P70EG INT TS RETBK PAB PSR2 Bit 0 ~ Bit 2 (PSR0 ~ PSR2) : TCC/WDT prescaler bits PSR2 0 0 0 0 1 1 1 1 PSR1 0 0 1 1 0 0 1 1 PSR0 0 1 0 1 0 1 0 1 TCC rate 1:2 1:4 1:8 1:16 1:32 1:64 1:128 1:256 WDT rate 1:1 1:2 1:4 1:8 1:16 1:32 1:64 1:128 1 PSR1 0 PSR0
Bit 3(PAB) : Prescaler assignment bit 0/1 TCC/WDT Bit 4(RETBK) : Return value backup control for interrupt routine 0 disable/enable When this bit is set to 1, the CPU will store ACC,R3 status and R5 PAGE automatically after an interrupt is triggered. And it will be restored after instruction RETI. When this bit is set to 0, the user need to store ACC, R3 and R5 PAGE in user program. Bit 5(TS) : TCC signal source 0 internal instruction cycle clock 1 16.384kHz Bit 6 (INT) : INT enable flag 0 interrupt masked by DISI or hardware interrupt 1 interrupt enabled by ENI/RETI instructions Bit 7(P70EG) : interrupt edge type of P70 0 P70 's interruption source is a rising edge signal. 1 P70 's interruption source is a falling edge signal. CONT register is readable (CONTR) and writable (CONTW). TCC and WDT : There is an 8-bit counter available as prescaler for the TCC or WDT. The prescaler is available for the TCC only or WDT only at the same time. An 8 bit counter is available for TCC or WDT determined by the status of the bit 3 (PAB) of the CONT register. See the prescaler ratio in CONT register. Fig.17 depicts the circuit diagram of TCC/WDT. Both TCC and prescaler will be cleared by instructions which write to TCC each time. The prescaler will be cleared by the WDTC and SLEP instructions, when assigned to WDT mode. The prescaler will not be cleared by SLEP instructions, when assigned to TCC mode.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
18
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
16.38KHz
Fig.6 Block diagram of TCC WDT IOC5 (PORT5 I/O control, LCD bias control, Comparator control)
PAGE0 (LCD bias control bits) 7 6 5 4 3 BIAS3 2 BIAS2 1 BIAS1 0 BIAS0
IOC57
IOC56
IOC55
R/W-1 R/W-1 R/W-1 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 3 (BIAS0 ~ BIAS3) : LCD operation voltage selection. Vop = VDD * (1 - n/60), where n = 0 ~ 15 BIAS3 BIAS2 BIAS1 BIAS0 Vop (=VDD-VLCD) Example (VDD = 3V) 0 0 0 0 VDD * (1-0/60) 3V 0 0 0 1 VDD * (1-1/60) 2.95V 0 0 1 0 VDD * (1-2/60) 2.90V 0 0 1 1 VDD * (1-3/60) 2.85V 0 1 0 0 VDD * (1-4/60) 2.80V : : : : : : 1 1 0 1 VDD * (1-13/60) 2.35V 1 1 1 0 VDD * (1-14/60) 2.30V 1 1 1 1 VDD * (1-15/60) 2.25V Bit 4 : (undefined) not allowed to use Bit 5 ~ Bit 7 (IOC55 ~ IOC57) : PORT5(5~7) I/O direction control register 0 put the relative I/O pin as output 1 put the relative I/O pin into high impedance
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
19
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VDD
Driver resistor and switch
V1 V2
VLCD
4 BIAS3 to BIAS0
Bias resistor and switch
Fig.7 LCD driver bias circuit
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
20
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Frame
VDD V1 COM 0 V2 VLCD VDD V1 COM 1 V2 VLCD VDD V1 COM 2 V2 VLCD VDD COM 3 V1 V2 VLCD VDD V1 SEG V2 VLCD dark VDD SEG V1 V2 VLCD light
Fig.8 Type1's LCD waveform for 1/3 bias, 1/4 duty (Type0 is no longer available in this mask version)
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
21
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Frame
VDD V1 COM 0 V2 VLCD VDD V1 COM 1 V2 VLCD VDD V1 SEG V2 VLCD dark VDD SEG V1 V2 VLCD light
Fig.9 Type1's LCD waveform for 1/3 bias, 1/2 duty (Type0 is no longer available in this mask version)
PAGE1 (Comparator control register) 7 6 5 4 3 2 1 0 CMPEN CMPS1 CMPS0 CMP_B4 CMP_B3 CMP_B2 CMP_B1 CMP_B0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 If user define CMP1/P63 pin, CMP2/P64 pin or CMP3/P65 pin (by CMPIN1, CMPIN2, CMPIN3 at IOCE page1) as CMP1, CMP2 pin or CMP3 pin (comparator's input pins), user can use this register to control comparator's function. Bit 0 ~ Bit 4 (CMP_B0 ~ CMP_B4) : Reference voltage selection of internal bias resistor string Voltage = VR x ( n + 0.5 )/ 32 , n=0 to 31. Set RB bit 6 (VREF) to select VR = VREG or 2.0V Bit 5 ~ Bit 6 (CMPS0 ~ CMPS1) : Comparator's channel selection bits from CMP1 to CMP3 Bit 7(CMPEN) : Enable bit of the comparator circuit 0/1 disable/enable the comparator circuit CMPS1 0 0 1 1 CMPS0 0 1 0 1 Input CMP1 CMP2 CMP3 Reserved
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
22
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
The relation between these registers is shown as follows in Fig.10. Ps. VRSEL bit is in IOCA PAGE1 bit 4.
Name P62S P63S P64S Register bit location IOC6 PAGE1 bit 2 IOC6 PAGE1 bit 3 IOC6 PAGE1 bit 4
CMP1/P62
CMP1 MUX P62S PORT62
CMP2/P63
CMP2 MUX P63S PORT63
MUX
+ -
CMPFLAG
2 CMP3 CMPS1 CMPS0 1 0 MUX
CMP3/P64
MUX P64S
PORT64
VDD 2.5V ref
REFEN 2.5V
MUX
VR
CMPREF CMPEN
VRSEL 1/2R 11111 R 11110 R 00000 1/2R 5 CMP_B4 to CMP_B0 MUX
(This ckt is form DAC)
Name CMPEN CMPS1 ~ CMPS0 CMP_B4 ~ CMP_B0 VRSEL
Register bit location IOC5 PAGE1 bit 7 IOC5 PAGE1 bit 6 ~ 5 IOC5 PAGE1 bit 4 ~ 0 IOCA PAGE1 bit 4
Name CMPREF CMPFLAG
Register bit location RA PAGE0 bit 1 RA PAGE0 bit 2
Fig.10 The comparator circuit
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
23
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
CMPEN CMP1 to CMP3 reference voltage
Setup time 10us
CPU clock
CMPFLAG
Compare start
Compare end
Fig.11 The comparator timing IOC6 (PORT6 I/O control, P6* pins switch control)
PAGE0 (PORT6 I/O control register) 7 6 5 4 3 2 1 0 IOC67 IOC66 IOC65 IOC64 IOC63 IOC62 IOC61 IOC60 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (IOC60 ~ IOC67) : PORT6(0~7) I/O direction control register 0 put the relative I/O pin as output 1 put the relative I/O pin into high impedance PAGE1 (P6* pins switch control register) 7 6 5 4 3 2 1 0 AMUTE P66S P65S P64S P63S P62S R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 1 : (undefined) not allowed to use Bit 2(P62S) : Select channel 1 input pin of comparator or I/O PORT62 pin 0 P62 (I/O PORT62) pin is selected 1 CMP1 (Channel 1 input of comparator) pin is selected Bit 3(P63S) : Select channel 2 input pin of comparator or I/O PORT63 pin 0 P63 (I/O PORT63) pin is selected 1 CMP2 (Channel 2 input of comparator) pin is selected Bit 4(P64S) : Select channel 3 input pin of comparator or I/O PORT64 pin 0 P64 (I/O PORT64) pin is selected 1 CMP3 (Channel 3 input of comparator) pin is selected Bit 5(P65S) : Select receiving audio output pin of CTCSS or I/O PORT65 pin 0 P65 (I/O PORT65) pin is selected 1 AURX (Receiving audio output pin of CTCSS) pin is selected Bit 6(P66S) : Select modulation transmitting output pin of CTCSS or I/O PORT66 pin 0 P66 (I/O PORT66) pin is selected 1 MTX (Modulation transmitting output of CTCSS) pin is selected
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
24
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Bit 7(AMUTE) : Audio mute for MIC AMP of CTCSS block 0 Voice transmitting path from MIC AMP output 1 Audio mute from MIC AMP output Refer to Fig.14 CTCSS block for details.
IOC7 (PORT7 I/O control, PORT7 pull high control)
PAGE0 (PORT7 I/O control register) 7 6 5 4 3 2 1 0 IOC77 IOC76 IOC75 IOC74 IOC73 IOC72 IOC71 IOC70 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (IOC70 ~ IOC77) : PORT7(0~7) I/O direction control register 0 put the relative I/O pin as output 1 put the relative I/O pin into high impedance PAGE1 (PORT7 pull high control register) 7 6 5 4 3 2 1 0 PH77 PH76 PH75 PH74 PH73 PH72 PH71 PH70 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (PH70 ~ PH77) : PORT7 bit0~bit7 pull high control register 0 disable pull high function. 1 enable pull high function
IOC8 (PORT8 I/O control, PORT8 pull high control)
PAGE0 (PORT8 I/O control register) 7 6 5 4 3 2 1 0 IOC87 IOC86 IOC85 IOC84 IOC83 IOC82 IOC81 IOC80 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (IOC80 ~ IOC87) : PORT8(0~7) I/O direction control register 0 put the relative I/O pin as output 1 put the relative I/O pin into high impedance PAGE1 (PORT8 pull high control register) 7 6 5 4 3 2 1 0 PH87 PH86 PH85 PH84 PH83 PH82 PH81 PH80 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (PH80 ~ PH87) : PORT8 bit0~bit7 pull high control register 0 disable pull high function. 1 enable pull high function
IOC9 (PORT9 I/O control, PORT9 switches)
PAGE0 (PORT9 I/O control register) 7 6 5 4 3 2 1 0 IOC97 IOC96 IOC95 IOC94 IOC93 IOC92 IOC91 IOC90 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 R/W-1 Bit 0 ~ Bit 7 (IOC90 ~ IOC97) : PORT9(0~7) I/O direction control register 0 put the relative I/O pin as output 1 put the relative I/O pin into high impedance
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
25
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
PAGE1 (PORT9 switches) 7 6 5 4 3 2 P97S P96S P95S P94S P93S P92S R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 : (undefined) not allowed to use Bit 1(P91S) : Switch I/O PORT91 or LCD segment signal 0 (P91 pin is selected) : normal PORT91 1 (SEG19 pin) : SEGMENT output Bit 2(P92S) : Switch I/O PORT92 or LCD segment signal 0 (P92 pin is selected) : normal PORT92 1 (SEG18 pin) : SEGMENT output Bit 3(P93S) : Switch I/O PORT93 or LCD segment signal 0 (P93 pin is selected) : normal PORT93 1 (SEG17 pin) : SEGMENT output Bit 4(P94S) : Switch I/O PORT94 or LCD segment signal 0 (P94 pin is selected) : normal PORT94 1 (SEG16 pin) : SEGMENT output Bit 5(P95S) : Switch I/O PORT95 or LCD segment signal 0 (P95 pin is selected) : normal PORT95 1 (SEG15 pin) : SEGMENT output Bit 6(P96S) : Switch I/O PORT96 or LCD segment signal 0 (P96 pin is selected) : normal PORT96 1 (SEG14 pin) : SEGMENT output Bit 7(P97S) : Switch I/O PORT97 or LCD segment signal 0 (P97 pin is selected) : normal PORT97 1 (SEG13 pin) : SEGMENT output
1 P91S R/W-0
0 -
IOCA (TONE2 control, Control bits for DAC, DAC tone, Reference, VOX and P67 switch)
PAGE0 (TONE2 control register) 7 6 5 4 3 2 1 0
T27
T26
T25
T24
T23
T22
T21
T20
R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7(T20 ~ T27) : Tone generator 2 `s frequency divider and power control Please Run in Normal mode . Clock source = 111957Hz T27~T20 = `11111111' => Tone generator2 will has 438Hz SIN wave output. : T27~T20 = `00000010' => Tone generator2 will has 55921Hz SIN wave output. T27~T20 = `00000001' => DC bias voltage output T27~T20 = `00000000' => Power off Built-in tone generators can generate dialing tone signals for telephone of dialing tone type or just a single tone. In DTMF application, there are two kinds of tone. One is the group of row frequency (TONE1), the other is the group of column frequency (TONE2), each group has 4 kinds of frequency, user can get 16 kinds of DTMF frequency totally. Tone generator contains a row frequency sine wave generator for generating the DTMF signal which selected by IOCD PAGE0, IOCE PAGE0 and a column frequency sine wave generator for generating the DTMF signal which selected by IOCA PAGE0. This block can generate single tone by filling one of these two register.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
26
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
If all the values are low, the power of tone generators will turn off . TONE2 (IOCA PAGE0) High group freq. 1203.8 (0X5D) 1332.8(0X54) 1473.1(0X4C) 1646.4(0X44) TONE1(IOCD, 699.7Hz(0x0A0) 1 2 3 A IOCE PAGE0) 772.1Hz(0x091) 4 5 6 B Low group freq. 854.6Hz(0x083) 7 8 9 C 940.8Hz(0x077) * 0 # D PAGE1 (Control bits for DAC, DAC tone, Reference, VOX and P67 switch) 7 6 5 4 3 2 1 0 DAT/DAD VREF DATEN VRSEL DAST/P67 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 2 : (undefined) not allowed to use Bit 3(DAST/P67) : DAC enable control or P67 switch 0 switch DAO/P67 pin as normal I/O P67 1 enable DAC, enable DAC output buffer B1 and DAC output to DAO/P67 pin When this bit is set by software, the DA converter will start converting and output to DAO/P67 pin. If user clean this bit, DA converter will stop and DAO/P67 pin will be become normal I/O P67. Also refer to bit 5(DATEN) for DAC power control. Bit 4(VRSEL) : Reference voltage selection bit for Comparator circuit 0/1 VDD/2.5V from DAC Also see Fig.13 in the next page. Bit 5(DATEN) : DAC enable control 0/1 disable/enable DAC and its tone output buffer B2 When this bit is set by software, the DA converter will start converting and output to internal CTCSS VTX3 end. If user clean this bit, DA converter will stop and DAO tone output buffer B2 is disabled. Also refer to bit 3(DAST/P67) for DAC power control. Bit 6(VREF) : Reference voltage selection bit for DA converter circuit DAC reference setting is shown as following. Also see Fig.12 and Fig.13 in the next page. ASW3 VREF DATEN DAST/P67 Function 1 x 1 x select 2.5V ref, enable 2.5V ref, enable DAC, 0 1 1 x enable buffer B2, buffer B2 output to CTCSS LPF 0 0 1 x select VDD, disable 2.5V, enable DAC, enable buffer B2 x 1 0 1 select 2.5V ref, enable 2.5V ref, enable DAC, enable buffer B1, buffer B1 output to DAO/P67 pin x 0 0 1 select VDD, disable 2.5V, enable DAC, enable buffer B1, buffer B1 output to DAO/P67 pin Ps. IOCE PAGE1 bit 2 (ASW3), IOCA PAGE1 bit 6 (VREF), IOCA PAGE1 bit 5 (DATEN), IOCA PAGE1 bit 3 (DAST/P67)
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
27
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VDD
MUX
CMPEN
2.5V ref
MUX
VRSEL
To ladder resistors
(This circuit is from Comparator) REFSEL REFEN VRX3 To Sub-Audio LPF
2R R
B2
VTX3
MUX
DAC input
8-bit DAC input data buffer
DATEN
ASW3 (This circuit is from CTCSS)
2R R 2R 2R
DAST/P67 PORT67
B1
DAO/P67
Fig.12 D/A converter (DAC)
ASW3 REFSEL VREF
DATEN DAST/P67
REFEN
CMPEN VRSEL
Fig.13 DAC reference voltage control logic
Bit 7(DAT/DAD) : Programmable D/A tone generation or D/A input data enable control 0 Enable D/A input data and disable D/A tone generation (also stop to D/A tone generation) 1 Enable Programmable D/A tone generation and disable D/A input data
IOCC (PORTC I/O control, PORT switch)
PAGE0 (PORTC I/O control register) 7 6 5 4 3 2 1 0 IOCC0 R/W-1
Bit 0 (IOCC0) : PORTC0 I/O direction control register Bit 1 ~ Bit 7 : (undefined) not allowed to use PAGE1 (PORT switch) 7 6 5 4 3 2 P5SH R/W-0
1 -
0 -
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
28
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Bit 0 ~ Bit 1 : (undefined) not allowed to use Bit 2(P5SH) : Switch I/O PORT5 high nibble(5~7) or LCD segment signal 0 (P55 ~ P57 pins are selected) : normal PORT5 high nibble(5~7) 1 (SEG10 ~ SEG12 pins are selected) : SEGMENT output Bit 3 ~ Bit 7 : (undefined) not allowed to use
IOCD (TONE1 control, Clock source, Prescaler of CN1 and CN2)
PAGE0 (TONE1 control) 7 6 5 4 3 2 1 0 T17 T16 T15 T14 T13 T12 T11 T10 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 7 (T10 ~ T17) : Tone generator 1`s frequency divider and power control Please Run in Normal mode. Clock source = 111957Hz and Freq. = 111957Hz / N, where N is divider value for T1A ~ T10 (T1A ~ T18 are in the IOCE PAGE0 Bit 2 ~ Bit 0. If T20 ~ T18 are all "0", then T17 ~ T10 = `11111111' => Tone generator1 will has 439Hz SIN wave output. : T17~T10 = `00000010' => Tone generator1 will has 55978Hz SIN wave output. T17~T10 = `00000001' => DC bias voltage output T17~T10 = `00000000' => Power off PAGE1 (Clock source and prescaler for COUNTER1 and COUNTER2) 7 6 5 4 3 2 1 0 CNT2S C2_PSC2 C2_PSC1 C2_PSC0 CNT1S C1_PSC2 C1_PSC1 C1_PSC0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 2 (C1_PSC0 ~ C1_PSC2) : COUNTER1 prescaler ratio C1_PSC2 C1_PSC1 C1_PSC0 COUNTER1 0 0 0 1:2 0 0 1 1:4 0 1 0 1:8 0 1 1 1:16 1 0 0 1:32 1 0 1 1:64 1 1 0 1:128 1 1 1 1:256 Bit 3(CNT1S) : COUNTER1 clock source 0/1 16.384kHz/system clock Bit 4 ~ Bit 6 (C2_PSC0 ~ C2_PSC2) : COUNTER2 prescaler ratio C2_PSC2 C2_PSC1 C2_PSC0 COUNTER2 0 0 0 1:2 0 0 1 1:4 0 1 0 1:8 0 1 1 1:16 1 0 0 1:32 1 0 1 1:64 1 1 0 1:128 1 1 1 1:256 Bit 7(CNT2S) : COUNTER2 clock source 0/1 16.384kHz/system clock
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
29
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS IOCE (TONE1 extra control bits, CTCSS control switches)
PAGE0 (Interrupt mask, TONE1 extra three control bits) 7 6 5 4 3 2 1 0 T1A T19 T18 R/W-0 R/W-0 R/W-0 Bit 0 ~ Bit 2 (T18 ~ T1A) : Most significant 3 bits of Tone generator 1`s frequency divider and power control These 3 bits and other 8 bits (IOCA PAGE0 bit 7 ~ bit0) are assembled as 11-bit frequency divider for Tone generator 1 Bit 3 ~ Bit 7 = 0 : (undefined) not allowed to use PAGE1 (CTCSS control switches) 7 6 5 4 3 2 1 0 ASW4 ASW3 ASW2 ASW1 TXPWR RXPWR BPFPWR LPFPWR R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0(ASW1) : Analog switch-1 control for multi-plexer in the CTCSS block 0 Select VRX1 input 1 Select VTX1 input Bit 1(ASW2) : Analog switch-2 control for multi-plexer in the CTCSS block 0 Select VRX2 output 1 Select VTX2 output Bit 2(ASW3) : Analog switch-3 control for multi-plexer in the CTCSS block 0 Select VRX3 input 1 Select VTX3 input Bit 3(ASW4) : Analog switch-4 control for multi-plexer in the CTCSS block 0 Select VRX4 input 1 Select VTX4 input Bit 4(LPFPWR) : Power control for sub-audio LPF in the CTCSS block. 0/1 disable/enable Bit 5(BPFPWR) : Power control for audio BPF in the CTCSS block. 0/1 disable/enable Bit 6(RXPWR) : RX power control for the CTCSS block 0/1 disable/enable Bit 7(TXPWR) : TX power control for the CTCSS block 0/1 disable/enable
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
30
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Name P65S P66S AMUTE DETO
Register bit location IOC6 PAGE1 bit 5 IOC6 PAGE1 bit 6 IOC6 PAGE1 bit 7 R7 PAGE1 bit 6
RXO
RXPWR
RXI
Rx AMP VRF
RXPWR
ZC
DETO
BPFPWR
MICO
VRX1 VRX2 MUX
MIC AMP VRF Audio BPF
AURX PORT65 MUX
AURX/P65
MICI
MICO MUX VTX1
MUX VTX2 ASW2
ASW1
P65S
0dB VRX4
TXPWR CTCSS tone input
AMUTE VRX3 VTX3 MUX
Sub-Audio LPF
MUX ASW4
(from DAC output buffer B2) ASW3 LPFPWR
-10dB
Summing AMP VRF
MTX PORT66 MUX
MTX/P66
VTX4
TXPWR
P66S
Name ASW1 ASW2 ASW3 ASW4 LPFPWR BPFPWR RXPWR TXPWR
Register bit location IOCE PAGE1 bit 0 IOCE PAGE1 bit 1 IOCE PAGE1 bit 2 IOCE PAGE1 bit 3 IOCE PAGE1 bit 4 IOCE PAGE1 bit 5 IOCE PAGE1 bit 6 IOCE PAGE1 bit 7
Fig.14 CTCSS block
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
31
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
IOCF (Interrupt mask)
(Interrupt mask register) Bit7 Bit6 Bit5 Bit4 INT3 DETO INT2 INT1 R/W-0 R/W-0 R/W-0 R/W-0 Bit 0 ~ 7 : interrupt enable bit 0 disable interrupt 1 enable interrupt Interrupt signal IDLE mode RA(7,6)=(1,0) + SLEP (1) Wake-up (2) Interrupt (jump to address 8 at page0) (3) after RETI instruction, jump to SLEP Next instruction (1) Wake-up (2)Interrupt (jump to address 8 at page0) (3) after RETI instruction, jump to SLEP Next instruction (1) Wake-up (2) Interrupt (jump to address 8 at page0) (3) after RETI instruction, jump to SLEP Next instruction (1) Wake-up (2) Interrupt (jump to address 8 at page0) (3) after RETI instruction, jump to SLEP Next instruction No function Bit3 INT0 R/W-0 Bit2 CNT2 R/W-0 Bit1 CNT1 R/W-0 Bit0 TCIF R/W-0
The status after interrupt and the interrupt sources list as the table below.
GREEN mode RA(7,6)=(x,0) no SLEP Interrupt (jump to address 8 at page0) NORMAL mode RA(7,6)=(x,1) no SLEP Interrupt (jump to address 8 at page0)
TCC time out IOCF bit0=1 And "ENI"
COUNTER1 time out IOCF bit1=1 And "ENI"
Interrupt (jump to address 8 at page0)
Interrupt (jump to address 8 at page0)
COUNTER2 time out IOCF bit2=2 And "ENI"
Interrupt (jump to address 8 at page0)
Interrupt (jump to address 8 at page0)
PORT7(0~3) IOCF bit3 or bit4 or bit5 or bit7=1 And "ENI" DETO IOCF bit6 = 1 And "ENI"
Interrupt (jump to address 8 at page0)
Interrupt (jump to address 8 at page0)
No function
Interrupt (jump to address 8 at page0)
PORT70 's interrupt function is controlled by IOCF bit 3. It's falling edge or rising edge trigger (controlled by CONT register bit7). PORT7(1~3) 's wakeup functions are controlled by IOCF bit (4,5,7). They are falling edge trigger. DETO's interrupt function is controlled by IOCF bit 6. It's falling edge trigger, falling and rising edge trigger (set by RD PAGE0 bit 7).
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
32
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.4 I/O Port
The I/O registers are bi-directional tri-state I/O ports. The I/O ports can be defined as "input" or "output" pins by the I/O control registers under program control. The I/O data registers and I/O control registers are both readable and writable. The I/O interface circuit is shown in Fig.17.
PCRD
Q
P R C L
D CLK PCWR
Q
PORT
Q
P R C L
D CLK PDWR
IOD
Q
PDRD 0 1 M U X
Fig.15 The circuit of I/O port and I/O control register
VII.5 RESET
The RESET can be caused by (1) Power on voltage detector reset (/POVD) and power on reset (2) WDT timeout. (if enabled and in GREEN or NORMAL mode) (3) /RESET pin pull low At case (1), /POVD is controlled by CODE OPTION. If you enable /POVD, CPU will reset at under 1.8V and CPU will consume more current about 5uA. It is used for low voltage reset/ And the power-on reset is a circuit which is always enabled and only works on initially power-on reset. It will reset CPU at about 1.4V and consume about 0.5uA. Once the RESET occurs, the following functions are performed. * The oscillator is running, or will be started. * The Program Counter (R2) is set to all "0". * When power on, the upper 3 bits of R3 and the upper 2 bits of R4 are cleared. * The Watchdog timer and prescaler counter are cleared. * The Watchdog timer is disabled. * The CONT register is set to all "1" * The other register (bit 7 ~ bit 0) defult values are as follows.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
33
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Operation registers : Address 0x4 0x5 0x6 0x7 0x8 0x9 0xA 0xB 0xC 0xD 0xE 0xF R register PAGE0 00xxxxxx xx0x0000 xxxxxxxx xxxxxxxx xxxxxxxx xxxxxxxx 00011x00 xxxxxxxx 0xxxx000 xxxx0000 00000000 R register PAGE1 xxxx0000 xxxxxxxx xxxxxx00 00000000 xxxxxxxx 11111111 00000000 00000000 11111111 IOC register PAGE0 111x0000 11111111 11111111 11111111 11111111 00000000 xxxxxxxx 00000000 xxxxx000 00000000 IOC register PAGE1 00000000 000000xx 00000000 00000000 0000000x 00000xxx xxxxx0xx 00000000 00000000
VII.6 Wake-up
The controller has two types of sleep mode for power saving : (1) SLEEP mode, RA(7) = 0 + "SLEP" instruction The controller will turn off all the CPU and crystal. Other circuit with power control like key tone control or PLL control (which has enable register), user has to turn it off by software. (2) IDLE mode, RA(7) = 1 + "SLEP" instruction. The controller will turn CPU off, but the crystal. Wake-up from SLEEP mode (1) WDT time out (2) External interrupt (3) /RESET pull low All these cases will reset controller , and run the program at address zero. The status just like the power on reset. Be sure to enable circuit at case (1) or (2). Wake-up from IDLE mode (1)WDT time out (2) external interrupt (3) internal interrupt like counters All these cases, user has to enable circuit before entering IDLE mode. After wake-up, all the register will keep values just like into "SLEP" instruction before. At case (2) or (3), controller will wake up and jump to address 0x08 for interruption sub-routine. After finishing sub-routine ("RETI" instruction), program will jump to the next instruction from "SLEP" instruction.
VII.7 Interrupt
RF is the interrupt status register which records the interrupt request in flag bit. IOCF is the interrupt mask register. Global interrupt is enabled by ENI instruction and is disabled by DISI instruction. When one of the interrupts (when enabled) generated, will cause the next instruction to be fetched from address 008H. Once in the interrupt service routine, the source of the interrupt can be determined by polling the flag bits in the RF register.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
34
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
The interrupt flag bit must be cleared in software before leaving the interrupt service routine and enabling interrupts to avoid recursive interrupts.
VII.8 Instruction Set
Instruction set has the following features: (1) Every bit of any register can be set, cleared, or tested directly. (2) The I/O register can be regarded as general register. That is, the same instruction can operates on I/O register. The symbol "R" represents a register designator which specifies which one of the 64 registers (including operational registers and general purpose registers) is to be utilized by the instruction. Bits 6 and 7 in R4 determine the selected register bank. "b'' represents a bit field designator which selects the number of the bit, located in the register "R'', affected by the operation. "k'' represents an 8 or 10-bit constant or literal value. INSTRUCTION BINARY 0 0 0 0 0 0 0 0 0 0 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0001 0001 0001 0001 0000 0001 0010 0011 0100 rrrr 0000 0001 0010 0011 HEX 0000 0001 0002 0003 0004 000r 0010 0011 0012 0013 0014 001r 0020 00rr 0080 00rr 01rr 01rr 01rr 01rr 02rr 02rr 02rr 02rr 03rr 03rr MNEMONIC NOP DAA CONTW SLEP WDTC IOW R ENI DISI RET RETI CONTR IOR R TBL MOV R,A CLRA CLR R SUB A,R SUB R,A DECA R DEC R OR A,R OR R,A AND A,R AND R,A XOR A,R XOR R,A OPERATION No Operation Decimal Adjust A A CONT 0 WDT, Stop oscillator 0 WDT A IOCR Enable Interrupt Disable Interrupt [Top of Stack] PC [Top of Stack] PC Enable Interrupt CONT A IOCR A R2+A R2 bits 9,10 do not clear AR 0A 0R R-A A R-A R R-1 A R-1 R A VR A A VR R A&RA A&RR ARA ARR STATUS AFFECTED None C None T,P T,P None None None None None None None Z,C,DC None Z Z Z,C,DC Z,C,DC Z Z Z Z Z Z Z Z Instruction cycle 1 1 1 1 1 1 1 1 2 2 1 1 2 1 1 1 1 1 1 1 1 1 1 1 1 1
0 0000 0001 0100 0 0000 0001 rrrr 0 0000 0010 0000 0 0 0 0 0 0 0 0 0 0 0 0 0 0000 0000 0000 0001 0001 0001 0001 0010 0010 0010 0010 0011 0011 01rr rrrr 1000 0000 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr 10rr rrrr 11rr rrrr 00rr rrrr 01rr rrrr
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
35
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
0 0 0 0 0 0 0 0 0 0 0 0011 0011 0100 0100 0100 0100 0101 0101 0101 0101 0110 10rr 11rr 00rr 01rr 10rr 11rr 00rr 01rr 10rr 11rr 00rr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr rrrr 03rr 03rr 04rr 04rr 04rr 04rr 05rr 05rr 05rr 05rr 06rr 06rr 06rr 06rr 07rr 07rr 07rr 07rr 0xxx 0xxx 0xxx 0xxx 1kkk 1kkk 18kk 19kk 1Akk 1Bkk 1Ckk 1Dkk 1E01 1E8k 1Fkk ADD A,R ADD R,A MOV A,R MOV R,R COMA R COM R INCA R INC R DJZA R DJZ R RRCA R RRC R RLCA R RLC R SWAPA R SWAP R JZA R JZ R BC R,b BS R,b JBC R,b JBS R,b CALL k JMP k MOV A,k OR A,k AND A,k XOR A,k RETL k SUB A,k INT PAGE k ADD A,k A+RA A+RR RA RR /R A /R R R+1 A R+1 R R-1 A, skip if zero R-1 R, skip if zero R(n) A(n-1) R(0) C, C A(7) R(n) R(n-1) R(0) C, C R(7) R(n) A(n+1) R(7) C, C A(0) R(n) R(n+1) R(7) C, C R(0) R(0-3) A(4-7) R(4-7) A(0-3) R(0-3) R(4-7) R+1 A, skip if zero R+1 R, skip if zero 0 R(b) 1 R(b) if R(b)=0, skip if R(b)=1, skip PC+1 [SP] (Page, k) PC (Page, k) PC kA AkA A&kA AkA k A, [Top of Stack] PC k-A A PC+1 [SP] 001H PC K->R5(3:0) k+A A Z,C,DC Z,C,DC Z Z Z Z Z Z None None C C C C None None None None None None None None None None None Z Z Z None Z,C,DC None None Z,C,DC 1 1 1 1 1 1 1 1 2 if skip 2 if skip 1 1 1 1 1 1 2 if skip 2 if skip 1 1 2 if skip 2 if skip 2 2 1 1 1 1 2 1 1 1 1
0 0110 01rr 0 0110 10rr 0 0110 11rr 0 0111 00rr 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 1 0111 0111 0111 100b 101b 110b 111b 00kk 01kk 1000 1001 1010 1011 1100 1101 1110
01rr rrrr 10rr rrrr 11rr rrrr bbrr rrrr bbrr rrrr bbrr rrrr bbrr rrrr kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk kkkk 0000 kkkk kkkk kkkk kkkk kkkk kkkk kkkk 0001
1 1110 1000 kkkk 1 1111 kkkk kkkk
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
36
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.9 CODE Option Register
The controller has one 13-bit CODE option register which is not part of the normal program memory. The option bits cannot be accessed during normal program execution. Bit12 Bit11 Bit10 Bit9 Bit8 Bit7 Bit6 Bit5 Bit4 Bit3 Bit2 Bit1 Bit0 - LCDOPT ROMSEL /POVD Bit 0(/POVD) : Power on voltage detector, 0/1 enable/disable This bit is fixed to 1 for disable. Bit 1(ROMSEL) : 16k ROM/8k ROM option, 0/1 16k/8k ROM selection This bit is fixed to 0 for 16k ROM. Bit 2 (LCDOPT) : LCD output waveform option 0 default LCD waveform for Type0 LCD waveform 1 switch over LCD bias V1 and V2 of segment for Type1 LCD waveform This bit is fixed to 1 for Type1 LCD waveform Bit 3 ~ Bit 12 : unused
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
37
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.10 Signal and control paths for DAC, DAC tone gen., CTCSS and Comparator
Volgage reference control logic
ASW3 REFSEL REFEN VREF DATEN DAST/P67 CMPEN VRSEL
VDD
(part of Comparator)
MUX
CMPEN To ladder resistors VRSEL
VDD
DAC
2.5V ref
MUX
(part of CTCSS)
VRX3 REFSEL
REFEN
B2
VTX3
MUX
To Sub-Audio LPF
DATEN
ASW3
R-2R
B1
DAO/P67
DAST/P67
PORT67
DAC Tone Gen.
fm = 447.829kHz
DAC Tone Gen.
MUX
DA7~DA0
DAT7~DAT0 DAT/DAD
Name DAST/P67 VRSEL DATEN VREF DAT/DAD CMPEN ASW3
Register bit location IOCA PAGE1 bit 3 IOCA PAGE1 bit 4 IOCA PAGE1 bit 5 IOCA PAGE1 bit 6 IOCA PAGE1 bit 7 IOC5 PAGE1 bit 7 IOCE PAGE1 bit 2
Name Register bit location DAT7 ~ DAT0 RE PAGE1 bit 7 ~ 0 DA7 ~ DA0 RA PAGE1 bit 7 ~ 0
ps. REFEN, REFSEL are not register bits.
Fig.16 Signal and control paths for analog circuit
The Fig.16 above try to explain how to use built-in 8-bit R-2R DAC. This DAC can be used as general DAC; here is call "DAC general mode". Also it can be used as FRS CTCSS tone generation; here is called DAC tone generator mode. When you use DAC general mode, you have to software program DAC input data DA7 ~ DA0 bits with different points of value for tone generation. When you use DAC tone generator mode, you just need to set DAT7 ~ DAT0 bits and then the hardware "DAC Tone Gen." will auto-program DAC to generate corresponding frequency signal output. Using this feature, it is easy and software free to generate accurate CTCSS tone.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
38
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
(1) DAC program modeG The below item "1" is for DAC general mode. The below item "2,3" are for DAC tone generator mode. 1. DAT/DAD = 0 DAC general mode, software-program DAC from DA7 ~ DA0 register bits , disable DAC tone generatorC 2. DAT/DAD = 1 DAC tone generator mode, hardware-program DAC by setting DAT7 ~ DAT0 register bits, enable DAC tone generatorC 3. DAT7 ~ DAT0 = 0 Disable DAC tone generatorC (2) DAC output pathsG DAST/P67 is used to enable DAC output buffer B1. DATEN is used to enable DAC output buffer B2. 1. ExternalG DAC output from its output buffer B1 to DAO/P67 pinC DAST/P67 = 1 power on DAC, enable DAC output buffer B1, output sent to DAO/P67 pinC 2. InternalG DAC output from its output buffer B2 to CTCSS Sub-audio LPFC DATEN = 1 power on DAC, enable DAC output buffer B2, output sent to CTCSS VTX3C (3) Using 2.5V ref and DAC
ASW3 REFSEL VREF
DATEN DAST/P67
REFEN
CMPEN VRSEL
Fig.17 Voltage reference control logic
"2.5V ref." is the reference voltage used in DAC, Comparator or CTCSS. The voltage reference control logic process these combination use. For this reference used in Comparator, you just only take care of CMPEN and VRSEL bits. For this reference used in others, you need to set ASW3, VREF, DATEN and DAST/P67. The following table shows the least two bits setting to logic "1" (CMPEN=VRSEL=1 or ASW3=DATEN=1 or VREF=DATEN=1 or VREF=DAST/P67=1) will "select 2.5V and enable 2.5V ref". When REFSEL = 1, the 2.5V ref is select not VDD. (select 2.5V ref) When REFEN = 1, the 2.5V ref is power on. (2.5V ref enable) ASW3 VREF DATEN DAST/P67 CMPEN VRSEL Function x x x x 1 1 select 2.5V ref, enable 2.5V ref, enable Comparator 1 x 1 x x x select 2.5V ref, enable 2.5V ref, enable DAC, 0 1 1 x x x enable buffer B2, buffer B2 output to CTCSS LPF x 1 0 1 x x select 2.5V ref, enable 2.5V ref, enable DAC, enable buffer B1, buffer B1 output to DAO/P67 pin (4) Select DAO/P67 pin as normal I/O P67 Set DAST/P67 = 0 to select normal I/O P67. (5) Using DAC general mode 1. DAT/DAD = 0 select DAC general modeC 2. Program DA7 ~ DA0C 3. Enable DAC, enable DAC output buffer, select DAC reference sourceC (6) Using DAC tone generator mode 1. DAT/DAD = 1 select DAC tone generator modeC 2. Program DAT7 ~ DAT0 = 1 to 255. (If DAT7 ~ DAT0 = 0, DAC tone gen. is disabled.)C 3. Enable DAC, enable DAC output buffer, select DAC reference sourceC Ps. When DAC tone output is set to CTCSS Sub-audio LPF(ASW3=DATEN=1 or VREF=DATEN=1), it will be forced to select 2.5V ref by voltage reference control logic. When its output is set to DAO/P67 pin, reference voltage can be selected as VDD or 2.5V. Ref to Page 18,19 for CTCSS tone generation table.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
39
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.11 CTCSS block
Name P65S P66S AMUTE DETO Register bit location IOC6 PAGE1 bit 5 IOC6 PAGE1 bit 6 IOC6 PAGE1 bit 7 R7 PAGE1 bit 6
RXO
RXPWR
RXI
Rx AMP VRF
RXPWR
ZC BPFPWR
DETO
MICO
VRX1 VRX2 MUX MIC AMP VRF TXPWR CTCSS tone input (from DAC output buffer B2) ASW3 LPFPWR ASW4 AMUTE VRX3 VTX3 MUX Sub-Audio LPF 0dB VRX4 MUX -10dB VTX4 VRF TXPWR Summing AMP MTX PORT66 MUX MICO MUX VTX1 ASW1 ASW2 Audio BPF MUX VTX2 P65S AURX PORT65 MUX
AURX/P65
MICI
MTX/P66
P66S
Name ASW1 ASW2 ASW3 ASW4 LPFPWR BPFPWR RXPWR TXPWR
Register bit location IOCE PAGE1 bit 0 IOCE PAGE1 bit 1 IOCE PAGE1 bit 2 IOCE PAGE1 bit 3 IOCE PAGE1 bit 4 IOCE PAGE1 bit 5 IOCE PAGE1 bit 6 IOCE PAGE1 bit 7
CTCSS block on page 36 Fig.14 is the key feature for FRS baseband signal processing. For receiving path, it receives the RF demodulator output signal and extract the audio output signal to AURX pin. Also it decodes CTCSS tone and its decoding data is shown in the DETO. For transmitting path, it combines audio signal from Mic Amp and CTCSS signal from DAC tone generator(as description in VII.9 section) thru MTX output to RF modulator input end. CTCSS block consists of amplifiers, analog switch, filters and zero-crossing detector which descriptions are shown below. RX AMP : (Receiving amplifier) It accepts RF demodulator output signals which combine demodulated audio and CTCSS tone. Its bias voltage is VDD/2. MIC AMP : (Microphone amplifier) It is the audio input amplifier. Its bias voltage is VDD/s. MUX : (Analog multiplexer switch) It is used for analog signal path switching. Audio BPF : (Audio band pass filter) This audio BPF has pass band 300Hz ~ 3.4kHz. It is used to let audio signal pass through and filter out CTCSS tones. It plays an important role in extracting audio signal. Also it cut out unwanted signal while audio signal transmitting. Sub-Audio LPF : (Sub-audio low pass filter) This sub-audio LPF has pass band 253Hz. It is used to let CTCSS tone pass through and filters out audio signal. It plays an important in extracting CTCSS tone. Also it cut out unwanted signal while CTCSS tone transmitting. Summing AMP : (Summing amplifier) It is an analog signal mixer for audio signal and CTCSS tone transmitting. CTCSS tone will be attenuated about 10dB before signal mixing. ZC : (Zero-crossing detector) This detector transforms CTCSS tone signal from analog form to digital form. It will be the CTCSS tone detection.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
40
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
Description for register control bits ASW1 ~ ASW4 for analog input/output signal path switching RXPWR for power control of receiving RX AMP and ZC TXPWR for power control of transmitting MIC AMP and Summing AMP AMUTE for MIC AMP output signal muting P65S for receiving audio output pin AURX or port P65 pin switching P66S for transmitting output pin MTX or port P66 pin switching The following is the above CTCSS block signal flow and it is easy to use these figures to explain how CTCSS works. (`blue' highlight means signal flow and switch setting) (1) RX : receiving CTCSS tone
RXO
RXPWR =1
RXI
Rx AMP VRF
RXPWR = 1
ZC BPFPWR
DETO
MICO
VRX1 VRX2 MUX MIC AMP VRF TXPWR CTCSS tone input (from DAC output buffer B2) ASW3 = 0 AMUTE VRX3 VTX3 MUX Sub-Audio LPF 0dB VRX4 MUX -10dB VTX4 VRF TXPWR Summing AMP MTX PORT66 MUX MICO MUX VTX1 ASW1 ASW2 Audio BPF MUX VTX2 P65S AURX PORT65 MUX
AURX/P65
MICI
MTX/P66
LPFPWR = 1 ASW4 = 0
P66S
Fig.18
(2) RX : receiving audio
RXO
RXPWR =1
RXI
Rx AMP VRF
RXPWR
ZC BPFPWR = 1
DETO
MICO
VRX1 VRX2 MUX MIC AMP VRF TXPWR CTCSS tone input (from DAC output buffer B2) ASW3 AMUTE VRX3 VTX3 MUX Sub-Audio LPF LPFPWR 0dB VRX4 MUX ASW4 -10dB VTX4 VRF TXPWR Summing AMP MTX PORT66 MUX MICO MUX VTX1 ASW1 = 0 ASW2 = 0 Audio BPF MUX VTX2 P65S = 1 AURX PORT65 MUX
AURX/P65
MICI
MTX/P66
P66S
Fig.19
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
41
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
(3) TX : transmitting CTCSS tone
RXO
RXPWR
RXI
Rx AMP VRF
RXPWR
ZC BPFPWR = 1
DETO
MICO
VRX1 VRX2 MUX MIC AMP VRF TXPWR = 1 CTCSS tone input (from DAC output buffer B2) ASW3 AMUTE = 0 VRX3 VTX3 MUX Sub-Audio LPF LPFPWR 0dB VRX4 MUX ASW4 -10dB VTX4 VRF TXPWR = 1 Summing AMP MTX PORT66 MUX MICO MUX VTX1 ASW1 = 1 ASW2 = 1 Audio BPF MUX VTX2 P65S AURX PORT65 MUX
AURX/P65
MICI
MTX/P66
P66S = 1
Fig.20
(4) TX : transmitting audio
RXO
RXPWR
RXI
Rx AMP VRF
RXPWR
ZC BPFPWR
DETO
MICO
VRX1 VRX2 MUX MIC AMP VRF TXPWR CTCSS tone input (from DAC output buffer B2) ASW3 = 1 LPFPWR = 1 AMUTE VRX3 VTX3 MUX Sub-Audio LPF 0dB VRX4 MUX -10dB VTX4 ASW4 = 1 TXPWR = 1 P66S = 1 VRF Summing AMP MTX PORT66 MUX MICO MUX VTX1 ASW1 ASW2 Audio BPF MUX VTX2 P65S AURX PORT65 MUX
AURX/P65
MICI
MTX/P66
Fig.21
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
42
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.12 8-bit R-2R DAC
VDD
MUX
CMPEN
2.5V ref
MUX
VRSEL
To ladder resistors
(This circuit is from Comparator) REFSEL REFEN VRX3 To Sub-Audio LPF
(part of DAC Tone Gen.)
DAC tone gen DAC input
2R R
B2
VTX3
MUX
MUX
DA7~DA0
8-bit DAC input data buffer
DATEN
ASW3 (This circuit is from CTCSS)
2R R 2R B1
DAO/P67
DAT/DAD
2R
DAST/P67 PORT67
Name DA7 ~ DA0 DAT/DAD
Register bit location RA PAGE1 bit 7 ~ 0 IOCA PAGE1 bit 7
Name DAST/P67 DATEN
Register bit location IOCA PAGE1 bit 3 IOCA PAGE1 bit 5
ps. Please refer to "Voltage reference control logic" to set DAC reference.
Fig.22 DAC block
In DAC tone generator mode, user can get CTCSS tone output. In other case, DAC is useful in general tone generation such as key tone, alert tone, music and so on. In DAC general mode, only VREF and DAST/P67 bits are relative to DAC reference voltage. DAC reference voltage is come from VDD or 2.5V ref. Setting VREF bit (IOCE PAGE1 bit 6) = 0/1 to select VDD/2.5V as reference. Setting DAST/P67 bit = 1 to power on DAC and also enable output buffer B1. After that, DAC output signal will be sent to DAO/P67 pin.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
43
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.13 4-bit Comparator
Name P62S P63S P64S Register bit location IOC6 PAGE1 bit 2 IOC6 PAGE1 bit 3 IOC6 PAGE1 bit 4
CMP1/P62
CMP1 MUX P62S PORT62
CMP2/P63
CMP2 MUX P63S PORT63
MUX
+ -
CMPFLAG
2 CMP3 CMPS1 CMPS0 1 0 MUX
CMP3/P64
MUX P64S
PORT64
VDD 2.5V ref
REFEN 2.5V
MUX
VR
CMPREF CMPEN
VRSEL 1/2R 11111 R 11110 R 00000 1/2R 5 CMP_B4 to CMP_B0 MUX
(This ckt is form DAC)
Name CMPEN CMPS1 ~ CMPS0 CMP_B4 ~ CMP_B0 VRSEL
Register bit location IOC5 PAGE1 bit 7 IOC5 PAGE1 bit 6 ~ 5 IOC5 PAGE1 bit 4 ~ 0 IOCA PAGE1 bit 4
Name CMPREF CMPFLAG
Register bit location RA PAGE0 bit 1 RA PAGE0 bit 2
This comparator is not only a single comparator. It consists of 16-R resistor string, 3-channel input and optional external comparison reference source input. The 16-R resistor string acts as 16-level voltage divider which top voltage reference can be selected from VDD or 2.5V ref. Use above register bits to set the whole job. This comparator is used to some applications such as voltage detection, RSSI level, sensor output level and other slow signal level transition detection and so on. This comparator can be called a simple 4-bit low speed ADC but the sampling time is decided by software. For AC frequency detection, it is limited by it output comparator structure. We suggest the detected AC frequency below 1kHz.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
44
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII.14 Programming tone generators
Vref1
N-R resistor string
Tone 1 analog multiplexer
Buffer
Vref2
VT
Reference voltage Vref2
Vref1
TONE
Tone 2 analog multiplexer
Vref2
Buffer
Vref2
Mixer
(output inverse)
fs2 fi
T2Mux control
T1Mux control
fs1 fs1 = fi / N1, fs2 = fi / N2 tone1 output frequency tone2 output frequency N1 Tone 1 programmable counter fT1 = fi / N1 / N, fT2 = fi / N2 / N,
N2 Tone 2 programmable counter
T27 ~ T20
T1A ~ T10
Name T1A ~ T18 T17 ~ T10 T27 ~ T20
Register bit location IOCD PAGE0 bit 2 ~ 0 IOCD PAGE0 bit 7 ~ 0 IOCA PAGE0 bit 7 ~ 0
Fig.23 Programming tone generator
Programming tone generators is an universal dual tone generators. It includes Tone 1 and Tone 2 generators which can be combines as dual tones output or either one tone output. The clock source fi is come from PLL and divided to required ratio. Tone 1 and Tone 2 are sinewave output. The programming tone generators consists of Tone 1/2 programmable counters, analog multiplexer, N-R resistor string, output buffers, mixer amplifier and reference voltage. N-R resistor is a voltage divider which has different output levels. By programmable counters and analog multiplexer, the hardware will automatically generate individual divider output with circular order back and forth. The output frequency will be 119957/N1 for Tone 1 and 11.957/N2 for Tone 2, where N1 is 11-bit T1A ~ T10 and N2 is 8-bit T17 ~ T10.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
45
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
III. Absolute Operation Maximum Ratings
RATING DC SUPPLY VOLTAGE INPUT VOLTAGE OPERATING TEMPERATURE RANGE SYMBOL VDD Vin Ta VALUE -0.3 To 6 -0.5 to VDD +0.5 -30 to 70 UNIT V V J
IV. DC Electrical Characteristic
(Ta = 0C ~ 70C, AVDD=VDD=5V5%, VSS=0V) Parameter Symbol Condition Min Typ Max Input leakage current for IIL1 VIN = VDD, VSS 1 input pins Input leakage current for biIIL2 VIN = VDD, VSS 1 directional pins Input high voltage VIH 2.5 Input low voltage VIL 0.8 Input high threshold voltage VIHT /RESET, TCC 2.0 Input low threshold voltage VILT /RESET, TCC 0.8 Clock input high voltage VIHX OSCI 3.5 Clock input low voltage VILX OSCI 1.5 Output high voltage for VOH1 IOH = -5mA 2.4 PORT5,6,7,8 Output high voltage for VOH2 IOH = -8 mA 2.4 PORT9,C Output low voltage for VOL1 IOH = 5mA 0.4 PORT5,6,7,8 Output low voltage for VOL2 IOH = 8 mA 0.4 PORT9,C LCD drive reference voltage VLCD VDD=5V, Contrast adjust 4~5 Pull-high current IPH Pull-high active input pin at -10 -15 VSS Power down current ISB1 All input and I/O pin at VDD, 1 5 (SLEEP mode) output pin floating, WDT disabled Low clock current ISB2 CLK=32.768KHz, All analog 35 50 (GREEN mode) circuits disabled, All input and I/O pin at VDD, output Low clock current ISB3 CLK=32.768KHz, All analog 30 45 (IDLE mode) circuits disabled, All input and I/O pin at VDD, output Operating supply current ICC1 /RESET=High, 1 2 (Normal mode) CLK=3.582MHz, All analog circuits disabled, output pin floating Tone generator reference Vref2 VREG is regulator output 0.5 0.7 voltage Tone1 signal strength V1rms Root mean square voltage 130 155 180 Tone2 signal strength V2rms Root mean square voltage 1.259V1rms Unit A A V V V V V V V V V V V A A A A
mA
VREG mV mV
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
46
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
2.5Vref for Comparator or DAC Parameter Internal 2.5V ref. voltage.
Condition VDD=5V, 25 deg VDD=3V, 25 deg Reference voltage linearity 2.5VREF/ VDD VDD=5.5V ~ 3.0V , 25 deg VDD=3.0V ~ 2.7V , 25 deg
Symbol 2.5VREF
Min 2.32 2.22
Typ 2.46 2.36 5 8
Max 2.58 2.48 8 15
Unit V V % %
Effective VDD reference for Comparator or DAC Parameter Symbol Condition VDD ref. voltage. VDDref VDD=5V ~ 2.7V, , - 20 ~ +50 deg
Min Typ Max VDD- VDD- VDD 0.05 0.02
Unit V
(Operation current consumption for analog circuit) (Ta = 0C ~ 70C, AVDD=VDD=5V5%, VSS=0V) Parameter Symbol Condition Min Typ 0.35 Max 0.6 Unit mA Programming tone generators Operation current for I_TONE TONE1 is power on Programming tone TONE2 is power on generators Digital to analog converter Operation current for DAC I_DA Comparator Operation current for Comparator I_CMP
0.65 70
0.9 120
mA uA
CTCSS Operation current for RX I_RX RXPWR=1, TXPWR=0 power on LPFPWR=0, BPFPWR=0 Operation current for TX I_TX RXPWR=0, TXPWR=1 power on LPFPWR=0, BPFPWR=0 Operation current for LPF I_LPF RXPWR=0, TXPWR=0 power on LPFPWR=1, BPFPWR=0 Operation current for BPF I_BPF RXPWR=0, TXPWR=0 power on LPFPWR=0, BPFPWR=1 * the spec for above table not including MCU current consumption
0.7 0.12 0.3 0.3
1.0 0.2 0.5 0.5
mA mA mA mA
XI. AC Electrical Characteristic
CPU instruction timing (Ta = -30C ~ 70C, AVDD=VDD=5V, VSS=0V) Parameter Input CLK duty cycle Instruction cycle time Device delay hold time TCC input period Watchdog timer period Symbol Dclk Tins Tdrh Ttcc Twdt Condition 32.768kHz 3.582MHz Note 1 Ta = 25C (Tins+20)/N 16 Min 45 Typ 50 60 550 16 Max 55 Unit % us ns ms ns ms
Note 1: N= selected prescaler ratio.
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
47
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
OSC and reset timing characteristics (see Fig.25 in page 50 for details) Symbol Min Typ Description Oscillator timing characteristic OSC start up 32.768kHz 3.579MHz PLL Toscs 400 5 Trst Tdrs 3 18
Max 1500 10
Unit ms us uS mS
Reset timing characteristic The minimum width of reset low pulse The delay between reset and program start
TONE generators for AC Characteristic (AVDD=VDD=5V,Ta=+25C) CHARACTERISTIC Tone1/Tone2 signal strength (root mean square voltage) Tone1 signal strength V1rms (ps1) ~= -14dBm (600[ ) Tone2 signal strength V2rms (ps1) ~ = -12dBm (600[ ) Tone twist (Tone1 - Tone2) twist Min Typ Max Unit mV mV dB
130 155 180 1.259V1rms -2
(ps1) : V1rms and V2rms has 2 dB difference. It means 20log(V2rms/V1rms) = 20log1.259 = 2 (dB) CTCSS block (AVDD=VDD=5V,Ta=+25C) Parameter RX mode Zero crossing threshold (mVrms) Data Duty Ratio TX mode CTCSS tone (form Tone 2) to VTX3, for 600[ CTCSS tone to MTX, for 600[ Filter BPF for Audio Pass-Band Frequency Pass-Band Ripple LPF for Sub-Audio Pass-Band Frequency Pass-Band Ripple
Min. Typ. Max. Unit 20 50 -12 -22 mV % dBm dBm
30
70
300
3400 1.0 253 1.0
Hz dB Hz dB
60
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
48
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VI. Timing Diagrams
ins
Fig.24 AC timing
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
49
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VDD
OSC
Toscs
Power on reset
Trst
/RESET
Tdrs Tdrs
Program Active
Fig.25 OSC and reset timing
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
50
07/28/2004 V3.5
EM78568 8-bit Micro-controller for FRS
VII. Application circuit
LCD display
VCC
FM demodulator
0.1u 100k 100k 100k 0.1u 100k
21 AVDD 22 RXO 23 RXI 26 MICI 27 MICO
51 VDD
14..11 COM(0..3) SEG(0..19) 10,100..82 AURX/P65 33 MTX/P66 32 to speaker AMP
EM78568
RSSI 36 CMP1/P62 35 CMP2/P63 34 CMP3/P64 AVSS 30 VSS 44
TONE 28 DAO/P67 31 (I/O port)
from Mic
FM modulator
low battery detect (other detect)
RF module
EM78568
Fig.26 Application circuit
__________________________________________________________________________________________________________________________________________________________________
* This specification are subject to be changed without notice.
51
07/28/2004 V3.5


▲Up To Search▲   

 
Price & Availability of EM78568

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X